<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>拉拉货物流有限公司</title>
		<meta name="keywords" content="拉拉货物流有限公司,汕头物流配送,汕头物流,汕头物流货运,汕头货运,全国货运,厦门物流配送,深圳物流配送,广州物流配送,物流配送,物流货运,货运配送" />
	    <meta name="description" content="拉拉货物流有限公司是一家承接全国各地门到门配送业务的专业第三方物流，为企业量身定做仓储、配送物流方案，针对大小客户配备专业项目小组进行专人专车对接。" />
	    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	    <link rel="stylesheet" href="css/amazeui.min.css" type="text/css" />
	    <link rel="stylesheet" href="css/style.css" type="text/css" />
	    <script type="text/javascript" src="js/jquery.min.js" ></script>
	    <script type="text/javascript" src="js/amazeui.min.js" ></script>
	</head>
	<body class="bgcolor">
		<header data-am-widget="header" class="am-header am-header-default header-white">
	      <h1 class="am-header-title">用户信息</h1>
	      <div class="am-header-right am-header-nav">
	      	<a href="tel:10086">帮助</a>
	      </div>
        </header>
        <div class="jl"></div>
        <h2 class="reg-title">个人信息</h2>
		<form >
        <ul class="reg-infor">
        	<li>
        		<em>*</em><span>头像：</span>
        		<i class="am-icon-angle-right"></i>
        		<div class="reg-upload">
        		    <a href="javascript:;">
        		    	<img src="images/f_addimg.png" />
        		    	<input class="reg-upload-btn" type="file" accept="image/*"/>
        		    </a>
        		</div>
        	</li>
        	<li>
        		<em>*</em><span>姓名：</span>
        		<i class="am-icon-angle-right"></i>
        		<input type="text" name="realName" placeholder="请填写真实姓名" class="bt" />
        	</li>
			<input type="hidden" name="loginId" id="lo" />
        	<li>
        		<em>*</em><span>身份证号：</span>
        		<i class="am-icon-angle-right"></i>
        		<input type="text" name="idCard"  placeholder="请填写身份证号" class="bt" />
        	</li>
        </ul>
        <p class="zhushi">（完善用户个人信息，我们承诺绝不泄露用户的任何信息）</p>
        <button class="save" type="button" id="add">保存</button>
		</form>
	</body>
	<script type="text/javascript">
		var user=JSON.parse(sessionStorage.getItem("user"))
		$("#lo").val(user.id)
		var url="http://localhost:8081"
		$("#add").click(function(){
			$.ajax({
				url:url+'/user/updatemessage',
				type:'put',
				dataType:'json',
				data:$("form").serialize(),
				success:function(r){
					if(r.code==200){
						location.href='member.html'
					}
				}
			})
		})
	</script>
	
</html>
